package com.hope.mychat.util;

import java.time.Instant;

/**
 * @author ZWH
 *
 * 日期工具类
 */
public class DateUtil {

    public static long getCurMillisecond() {
        return System.currentTimeMillis();
    }

    public static int getCurSecond() {
        return (int)Instant.now().getEpochSecond();
    }
}
